<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>字符串</title>
</head>

<body>
    <script>
        let str = "one line \n another line";
        console.log(str)
        str = "John's cat";
        console.log(str);
        console.log(str.length);
        console.log(str.toUpperCase());
        console.log(str.toLowerCase());
        str = `jfijkao; j g
        kagjregjporkgp['`
        console.log(str);
        var name = "Bob",
            time = "today";
        str = `HEllo${name},how are you${time}`;
        console.log(str);
        var quote = "He read \"ieafjiop \"dkf \"dfs";
        console.log(quote);
        var home = "c:\\\\temp";
        console.log(home);
        str = "this stjiagr\n\
        jfiowejf\
        odsap\
        faijwo"
        console.log(str)
    </script>
</body>

</html>